package com.bonuo.erp.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import com.ruoyi.common.annotation.Excel.Type;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class EmployeeRoster extends BaseEntity {

    private Integer id;

    @Excel(name = "姓名")
    private String name;

    @Excel(name = "工号")
    private String employeeNo;
    
    @Excel(name = "性别",dictType = "sys_user_sex")
    private String gender;
    
    @Excel(name = "民族")
    private String ethnicity;
    
    @Excel(name = "出生日期", width = 20, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;
    
    @Excel(name = "年龄",type = Type.EXPORT)
    private Integer age;
    
    @Excel(name = "身份证号码")
    private String idCard;
    
    @Excel(name = "政治面貌")
    private String politicalStatus;
    
    @Excel(name = "户口类型")
    private String householdType;
    
    @Excel(name = "手机")
    private String phone;
    
    @Excel(name = "部门")
    private String department;
    
    @Excel(name = "职务")
    private String position;
    
    @Excel(name = "职位")
    private String jobTitle;
    
    @Excel(name = "职级")
    private String positionLevel;
    
    @Excel(name = "入职日期", width = 20, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hireDate;
    
    @Excel(name = "司龄(年)",type = Type.EXPORT)
    private String companyYears;
    
    @Excel(name = "员工类型")
    private String employeeType;
    
    @Excel(name = "员工状态")
    private String employeeStatus;
    
    @Excel(name = "现居住地址")
    private String currentAddress;
    
    @Excel(name = "学历")
    private String education;
    
    @Excel(name = "毕业院校")
    private String graduationSchool;
    
    @Excel(name = "毕业时间", width = 20, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date graduationDate;
    
    @Excel(name = "专业")
    private String major;
    
    @Excel(name = "学位")
    private String degree;
    
    @Excel(name = "紧急联系人姓名")
    private String emergencyContact;
    
    @Excel(name = "紧急联系人手机")
    private String emergencyPhone;

    private Integer delFlag;

    @Excel(name = "备注")
    private String remark;
}